package com.jiuyin.dianjing.api.data;

import com.jiuyin.dianjing.api.constant.ApiConstant;
import com.jiuyin.dianjing.app.HelperApplication;

import org.json.JSONException;
import org.json.JSONObject;

public class TokenJson extends JSONObject {
    public TokenJson() throws JSONException {
        put(ApiConstant.KEY_TOKEN, HelperApplication.getToken());
    }

    public static TokenJson newInstance() throws JSONException {
        return (TokenJson) new TokenJson().put(ApiConstant.KEY_TOKEN, HelperApplication.getToken());
    }

}
